package com.itheima.reggie.service;

import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Page;

import java.util.List;

public interface CategoryService {

    boolean save(Category category);

    Page<Category> findByPage(Integer page, Integer pageSize);

    //删除指定类别
    boolean deleteById(Long id);
    //修改类别
    boolean update(Category category);

    List<Category> findAll();

    List<Category> findAllByType(Integer type);
}
